N = int(input("请输入一个正整数N: "))
result = sum(range(1, N + 1))
print(f"1到N的整数和为: {result}")
